package com.wangzhenyu.common.base

object IConstant {

    const val SERVICE_PHONE = "17601279137"

    //true 表示生产 false 表示测试
    var official = false


    //1申请开店审核成功;  2买家订单支付成功;  3:订单取消  ,4店铺审核不通过
    const val MESSAGE_APPLY_SHOP_SUCCESS = "1"
    const val MESSAGE_ORDER_PAY_SUCCESS = "2"
    const val MESSAGE_ORDER_CANCEL = "3"
    const val MESSAGE_APPLY_SHOP_REFUSE = "4"

    //骑手长时间未接单
    const val MESSAGE_RIDER_NOT_APPLY = "5"

    const val JPUSH_TYPE = "jPush_type"

    fun getSellerUrl() =
        if (official)
            "https://gitee.com/api/v5/"
        else
            "https://gitee.com/api/v5/"

    //这里使用玩安卓的API
    //https://www.wanandroid.com/blog/show/2
    fun getCommonUrl() =
        if (official)
            "https://www.wanandroid.com/"
        else
            "https://www.wanandroid.com/"

    fun getCaptchaUrl() = String.format("%s:7003/captcha.html", "http://api.base.c-dian.cn")


    fun getPrivacyServiceH5(): String {
        return "https://docs.qq.com/doc/DTHJkbGtmaWpkUkZW?u=fa1bb60dcf6940b6b3f6f9cdfcb7fbc6"
    }

    fun getUserServiceH5(): String {
        return "https://docs.qq.com/doc/DTHJkbGtmaWpkUkZW?u=fa1bb60dcf6940b6b3f6f9cdfcb7fbc6"
    }

    fun getSecurityH5(): String {
        return "https://docs.qq.com/doc/DTHJkbGtmaWpkUkZW?u=fa1bb60dcf6940b6b3f6f9cdfcb7fbc6"
    }

}